//SR5_13.java
//I want to compare two string.
import java.util.Scanner;
public class SR5_13
{
  public static void main(String []args)
  {
    String name1,name2;

    Scanner scan = new Scanner(System.in);
    
    System.out.println("Please input one String:");
    name1 = scan.nextLine();
   
    System.out.println("Please input another String:");
    name2 = scan.nextLine();

    int result = name1.compareTo(name2);
    if (result < 0)
       System.out.println(name1 + " comes before " + name2);
    else
      if (result == 0)
         System.out.println("The name is equal.");
      else
         System.out.println(name1 + " follows " + name2);
   }
}   
